<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>插入/上传图片</title>
	<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
	<script type="text/javascript" src="../../utils/mctabs.js"></script>
	<script type="text/javascript" src="../../utils/form_utils.js"></script>
	
	<link href="css/boneimage.css" rel="stylesheet" type="text/css" />
</head>
<body style="display: none">
<form onsubmit="ImageDialog.update();return false;" action="#">
	<div class="tabs">
		<ul>
			<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">链接图片</a></span></li>
			<li id="local_tab"><span><a href="javascript:mcTabs.displayTab('local_tab','local_panel');" onmousedown="return false;">本地上传</a></span></li>
		</ul>
	</div>

	<div class="panel_wrapper">
		<div id="general_panel" class="panel current">
		 <table border="0" cellpadding="4" cellspacing="0">
		  <tr>
			<td class="nowrap"><label for="src">图片地址</label></td>
			<td><table border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td><input id="src" name="src" type="text" class="mceFocus" value="" style="width: 200px" onchange="ImageDialog.getImageData();" /></td>
				  <td id="srcbrowsercontainer">&nbsp;</td>
				</tr>
			  </table></td>
		  </tr>
		  <tr>
			<td class="nowrap"><label for="alt">图片描述</label></td>
			<td><input id="alt" name="alt" type="text" value="" style="width: 200px" /></td>
		  </tr>
		  <tr>
			<td class="nowrap"><label for="align">对齐方式</label></td>
			<td><select id="align" name="align" onchange="ImageDialog.updateStyle();">
				<option value="">未设定</option>
				<option value="baseline">基线</option>
				<option value="top">顶端</option>
				<option value="middle">居中</option>
				<option value="bottom">底部</option>
				<option value="texttop">文字上方</option>
				<option value="absmiddle">绝对居中</option>
				<option value="absbottom">绝对底部</option>
				<option value="left">左对齐</option>
				<option value="right">右对齐</option>
			  </select></td>
		  </tr>
		  <tr>
			<td class="nowrap"><label for="width">尺寸</label></td>
			<td><input id="width" name="width" type="text" value="" size="3" maxlength="5" />
			  x
			  <input id="height" name="height" type="text" value="" size="3" maxlength="5" /></td>
		  </tr>
		  <tr>
			<td class="nowrap"><label for="border">边框</label></td>
			<td><input id="border" name="border" type="text" value="0" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
		  </tr>
		  <tr>
			<td class="nowrap"><label for="vspace">垂直间距</label></td>
			<td><input id="vspace" name="vspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
		  </tr>
		  <tr>
			<td class="nowrap"><label for="hspace">水平间距</label></td>
			<td><input id="hspace" name="hspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
		  </tr>
		</table>
		</div>
		
		<div id="local_panel" class="panel">
		 <table border="0" cellpadding="4" cellspacing="0">
		  <tr>
			<td class="nowrap"><label for="src">选择文件</label></td>
			<td><table border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td>
				  	<input type="file" />
				  </td>
				  <td id="srcbrowsercontainer">&nbsp;</td>
				</tr>
			  </table></td>
		  </tr>
		  <tr>
			<td class="nowrap"><label for="alt">图片描述</label></td>
			<td><input id="alt" name="alt" type="text" value="" style="width: 200px" /></td>
		  </tr>
		  <tr>
			<td class="nowrap"><label for="align">对齐方式</label></td>
			<td><select id="align" name="align" onchange="ImageDialog.updateStyle();">
				<option value="">未设定</option>
				<option value="baseline">基线</option>
				<option value="top">靠上</option>
				<option value="middle">居中</option>
				<option value="bottom">靠下</option>
				<option value="text-top">文字上方</option>
				<option value="text-bottom">文字下方</option>
				<option value="left">靠左</option>
				<option value="right">靠右</option>
			  </select></td>
		  </tr>
		  <tr>
			<td class="nowrap"><label for="width">尺寸</label></td>
			<td><input id="width" name="width" type="text" value="" size="3" maxlength="5" />
			  x
			  <input id="height" name="height" type="text" value="" size="3" maxlength="5" /></td>
		  </tr>
		  <tr>
			<td class="nowrap"><label for="border">边框</label></td>
			<td><input id="border" name="border" type="text" value="0" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
		  </tr>
		  <tr>
			<td class="nowrap"><label for="vspace">垂直间距</label></td>
			<td><input id="vspace" name="vspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
		  </tr>
		  <tr>
			<td class="nowrap"><label for="hspace">水平间距</label></td>
			<td><input id="hspace" name="hspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
		  </tr>
		</table>
		</div>
		
	</div>

	<div class="mceActionPanel">
		<input type="submit" id="insert" name="insert" value="插入" />
		<input type="button" id="cancel" name="cancel" value="取消" onclick="tinyMCEPopup.close();" />
	</div>
</form>
</body>
</html>